package com.livegoods.controller;

import com.livegoods.commons.pojo.LivegoodsResult;
import com.livegoods.service.BuyactionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class BuyactionController {


    @Autowired
    private BuyactionService buyactionService;

    @RequestMapping("/buyaction")
    public LivegoodsResult buyaction(@RequestParam("id") String houseId,@RequestParam("user") String username){
        return buyactionService.buyaction(houseId,username);
    }

}
